﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Young3.FMSearch.Core.Entities.GameVersions;
using Young3.FMSearch.Core.Offsets;
using Young3.FMSearch.Core.Managers;
using Young3.FMSearch.Core.Attributes;

namespace Young3.FMSearch.Core.Entities.InGame
{
    public class Stadium : BaseObject
    {
        public Stadium(int memoryAddress, IVersion version)
            : base(memoryAddress, version)
        { }
                public Stadium(int memoryAddress, ArraySegment<byte> originalBytes, IVersion version)
            : base(memoryAddress, originalBytes, version)
        { }

        [FMEntityAttribute(StadiumOffsets.Length)]
        public Int16 FieldLength { get; set; }

        [FMEntityAttribute(StadiumOffsets.ExpansionCapacity)]
        public Int32 ExpansionCapacity { get; set; }

        [FMEntityAttribute(StadiumOffsets.SeatingCapacity)]
        public Int32 SeatingCapacity { get; set; }

        [FMEntityAttribute(StadiumOffsets.StadiumCapacity)]
        public Int32 StadiumCapacity { get; set; }

        [FMEntityAttribute(StadiumOffsets.UsedCapacity)]
        public Int32 UsedCapacity { get; set; }

        [FMEntityAttribute(StadiumOffsets.Width)]
        public Int16 FieldWidth { get; set; }

        //[FMEntityAttribute(StadiumOffsets.)]
        //public Byte Decay { get; set; }

        [FMEntityAttribute(StadiumOffsets.Name)]
        public String Name { get; internal set; }

        //[FMEntityAttribute(StadiumOffsets.StadiumID)]
        //public Int32 ID { get; internal set; }

        //[FMPointer(StadiumOffsets.)]
        //public Stadium NearbyStadium { get; set; }

        [FMPointer(StadiumOffsets.City)]
        public City City { get; internal set; }

        //[FMPointer(StadiumOffsets.)]
        //public Club Owner { get; set; }

        public override string ToString()
        {
            return Name;
        }

    }
}
